// 第一步 引入     
// createStore 创建仓库
// import { createStore,combineReducers } from 'redux'


//多个reducers 


import { createStore, combineReducers } from 'redux'


//news
let newsReducers = (state = { name: 'news' }, action) => {


    return state




}


//books
let booksReducers = (state = { name: 'books' }, action) => {
    return state

}


//list 

let listReducers = (state = { name: 'list' }, action) => {
    return state

}




let manyReducers = combineReducers({
    booksReducers,
    newsReducers,
    listReducers
})





//第二步调用 createStore("这个参数是一个reducers  reducers是一个纯函数")
let store = createStore(manyReducers)


export default store